public class Job03 {
    public static void main(String[] args) {
        int[] num02 = new int[10];
        int Max = 0;
        int Min = 0;
        for (int i = 0; i < num02.length; i++) {
            int num01 = (int)(100*Math.random());
            num02[i] = num01;
        }
        for (int i = 0; i < num02.length; i++) {
            if (i==0){
                Min = num02[i];
            }
            if (Max < num02[i]){
                Max = num02[i];
            }
            if (Min > num02[i]){
                Min = num02[i];
            }
        }
        System.out.println("最大值:" +Max+ ",最小值:" +Min);
    }
}
